package com.chapter8.example2;

//相当于Operation类
public class LeiFeng {
    public void Sweep(){
        System.out.println("扫地");
    }

    public void Wash(){
        System.out.println("洗衣");
    }

    public void BuyRice(){
        System.out.println("买米");
    }
}

//相当于具体的operation
class Undergraduate extends LeiFeng{

}

class Volunteer extends LeiFeng{

}